package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerDao {

    List<Customer> list(@Param("offSet") int offSet,@Param("rows") Integer rows,@Param("customerName") String customerName);

    Integer getCustomerCount(@Param("customerName") String customerName);

    Customer findCustomerByName(@Param("customerName") String customerName);

    void addCustomer(Customer customer);

    void updateCustomer(Customer customer);

    List<Customer> getCustomerByIds(String[] id);

    void deleteCustomer(String[] id);

}
